<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Torneio de Futebol</title>
	<link
		href="#{facesContext.externalContext.requestContextPath}/css/estilo.css"
		rel="stylesheet" type="text/css" />
</h:head>
<h:body styleClass="fundo">
	<div class="divIcones">
		<h:graphicImage value="/img/iUser.png" class="icones"
			onclick="dlg3.show();" />
		<h:graphicImage value="/img/iTrofeu.png" class="icones" />
	</div>

	<p:dialog header="Cadastro de Jogador" widgetVar="dlg3"
		showEffect="explode" hideEffect="explode" modal="true" height="100"
		width="460" maximizable="false" minimizable="false" position="top"
		resizable="false">
		<h:form>
		<p:growl id="growl" showDetail="true" sticky="true" />  
		<h:panelGrid columns="3" >
			<h:outputLabel value="Nome:* " />
			<p:inputText value="#{cadastro.nome}" required="true"  requiredMessage="Nome do Jogador Obrigatório" id="idNome"/>
			<p:commandButton    icon="botaoCadastroJogador" label="Salvar Jogador" title="Salvar Jogador" update="grid,growl" actionListener="#{cadastro.cadastroJogador()}" />
			
		</h:panelGrid>
		<h:panelGrid columns="1" id="grid">
		<p:message id="defaultMessage" for="idNome"  />
		</h:panelGrid>
		</h:form>
	</p:dialog>
</h:body>
</html>




